package method.method1202;

public class met060 {
    public static void main(String[] args) {
            odd(1,10);
            odd(10,5);
    }
    public static void odd(int a,int b){
        if (a<=b) {
            for (int i = a; i <= b; i++) {
                System.out.print(i % 2 == 1 ? i : " ");
            }
        }else {
            for (int i = b; i <= a; i++) {
                System.out.print(i % 2 == 1 ? i : " ");
            }
        }
    }
}
